
package tfoundation;

import java.awt.Font;
import java.awt.Graphics2D;

import orca.OrcaButton;
import orca.OrcaComponent;
import orca.OrcaPane;
import orca.templates.TabbedContext;

public class ThirdFoundation extends TabbedContext
{

	OrcaButton exitBtn;
	OrcaPane bottomBar;
	OrcaPane mainPane;

	public ThirdFoundation()
	{
		OrcaComponent oc;
		OrcaPane oc1;

		// this.bottomBar.

		this.exitBtn = new ExitButton();
		this.exitBtn.setLabel("Exit");
		this.exitBtn.setLocation(1302, 1004);
		this.exitBtn.setSize(300, 41);

	}

	@Override
	public void paint(Graphics2D g, int width, int height)
	{
		final int separation1 = height - 50;
		final Graphics2D g2d = (Graphics2D) g;

		int temp;
		// g.setColor(Color.BLACK);
		// g.fillRect(0, 0, width, height);

		// Barre du bas
		// temp = 50;
		// g.setColor(Color.GREEN);
		// g.drawRect(0, separation1, width - 1, temp - 1);

		// rect principal
		// temp = 50;
		// g.setColor(Color.GREEN);
		// g.drawRect(0, 0, width - 1, separation1);

		// exit bouton
		// g.setColor(Color.GREEN);
		// this.exitBtn.draw(g2d, 0, 0);

		// g.drawRect(this.exitBtn.getLocX(), this.exitBtn.getLocY(),
		// this.exitBtn.getWidth(), this.exitBtn.getHeight());
		// g.drawString(this.exitBtn.getLabel(), this.exitBtn.getLabelX(),
		// this.exitBtn.getLabelY());

	}

	private class ExitButton extends OrcaButton
	{
		@Override
		public void action()
		{
			ThirdFoundation.this.hide();
			ThirdFoundation.this.exit();
		}
	}

	public static void main(String args)
	{
		ThirdFoundation tf = new ThirdFoundation();

		tf.show();

		tf.refresh();
	}

	@Override
	public void mouseClicked(int button, int x, int y)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void mousePressed(int button, int x, int y)
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(int button, int x, int y)
	{
		// TODO Auto-generated method stub

	}
}
